home *** CD-ROM | disk | FTP | other *** search
- Path: news.tu-chemnitz.de!news
- From: hfst@hrz.tu-chemnitz.de (Hans Steffani)
- Newsgroups: comp.lang.c
- Subject: Re: EOF error
- Date: 31 Jan 96 17:56:36 GMT
- Organization: University of Technology Chemnitz, FRG
- Message-ID: <4eoaom$edg@pyrrhus-f.hrz.tu-chemnitz.de>
- References: <4eo12b$om3@newsbf02.news.aol.com>
- NNTP-Posting-Host: tantalus-f.hrz.tu-chemnitz.de
-
- polver@aol.com (Polver) writes:
-
- >#include <stdio.h>
-
- EOF should be there.
-
- >main()
- >{
- > int c;
-
- > c = getchar();
- > while (c != EOF) {
- > putchar(c);
- > c = getchar(c);
- getchar() does not need any arguments.
- > }
- >}
-
- >I keep getting an error about EOF undefined ar not scalar or something.
-
- I tried and it worked. You did include <stdio.h>. It should be found
- there (at least in my system it is). Have a look at stdlib.h maybe it
- is there.
-
- >You can reply here or at pmarti01@hills.ccsf.cc.ca.us
-
- If you like use
- Followup-To:poster
- and
- Reply-To: pmarti01@hills.ccsf.cc.ca.us
-
- h.f.s.
- >Thanks.
- --
- Hans Friedrich Steffani
- Institut fuer Elektrische Maschinen und Antriebe
- TU Chemnitz-Zwickau
- e-mail: hans.steffani@e-technik.tu-chemnitz.de
-